package com.openbravo.bean;

import java.io.Serializable;

public class ProductInfo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 8770977704326181796L;
	protected String m_ID;
    protected boolean m_bCom;
    protected boolean m_bScale;
    protected int m_iDurability; //质保
    protected String m_origin;//产地
    protected double m_quantity=1; //装数
    protected String m_sCode;
    protected String m_sManufacturer;
    protected String m_sName;
    protected String m_sRef;
    protected String m_sSimilarCode;
    protected String m_unit;
    protected String mnemonic;//助记码
    protected double weight;//重量
    protected String specification;//规格
    
    public final String getID() {
        return m_ID;
    }

    public final void setID(String id) {
        m_ID = id;
    }

    public final String getReference() {
        return m_sRef;
    }

    public final void setReference(String sRef) {
        m_sRef = sRef;
    }

    public final String getCode() {
        return m_sCode;
    }

    public final void setCode(String sCode) {
        m_sCode = sCode;
    }

    public final String getName() {
        return m_sName;
    }

    public final void setName(String sName) {
        m_sName = sName;
    }

    public final boolean isCom() {
        return m_bCom;
    }

    public final void setCom(boolean bValue) {
        m_bCom = bValue;
    }

    public final boolean isScale() {
        return m_bScale;
    }

    public final void setScale(boolean bValue) {
        m_bScale = bValue;
    }
    
    @Override
    public final String toString() {
        return m_sRef + " - " + m_sName;
    }
    
    public double getM_quantity() {
        return m_quantity;
    }

    public void setM_quantity(double m_quantity) {
        this.m_quantity = m_quantity;
    }

    public String getM_unit() {
        return m_unit;
    }

    public void setM_unit(String m_unit) {
        this.m_unit = m_unit;
    }

    public String getM_origin() {
        return m_origin;
    }

    public void setM_origin(String m_origin) {
        this.m_origin = m_origin;
    }
    
    public int getM_iDurability() {
        return m_iDurability;
    }

    public String getM_sManufacturer() {
        return m_sManufacturer;
    }

    public String getM_sSimilarCode() {
        return m_sSimilarCode;
    }

    public void setM_iDurability(int m_iDurability) {
        this.m_iDurability = m_iDurability;
    }

    public void setM_sManufacturer(String m_sManufacturer) {
        this.m_sManufacturer = m_sManufacturer;
    }

    public void setM_sSimilarCode(String m_sSimilarCode) {
        this.m_sSimilarCode = m_sSimilarCode;
    }
    
    public String getMnemonic() {
        return mnemonic;
    }

    public void setMnemonic(String mnemonic) {
        this.mnemonic = mnemonic;
    }

	public void copyFor(ProductInfo src) {
		m_ID = src.m_ID;
		m_bCom = src.m_bCom;
		m_bScale = src.m_bScale;
		m_iDurability = src.m_iDurability; 
		m_origin = src.m_origin;
		m_quantity = src.m_quantity; 
		m_sCode = src.m_sCode;
		m_sManufacturer = src.m_sManufacturer;
		m_sName = src.m_sName;
		m_sRef = src.m_sRef;
		m_sSimilarCode = src.m_sSimilarCode;
		m_unit = src.m_unit;
		mnemonic = src.mnemonic;
	    weight=src.weight;
	    specification=src.specification;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	
}
